package com.itheima.stock.mapper;

import com.itheima.stock.common.domain.SectorAll;
import com.itheima.stock.pojo.StockBlockRtInfo;
import com.itheima.stock.vo.R;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 陈鑫航
* @description 针对表【stock_block_rt_info(股票板块详情信息表)】的数据库操作Mapper
* @createDate 2022-01-08 20:56:19
* @Entity com.itheima.stock.pojo.StockBlockRtInfo
*/
public interface StockBlockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBlockRtInfo record);

    int insertSelective(StockBlockRtInfo record);

    StockBlockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBlockRtInfo record);

    int updateByPrimaryKey(StockBlockRtInfo record);

    /**
     * 获取国内板块指数
     * @return
     */
    List<SectorAll> getSectorAllLimit();

    /**
     * 批量插入版块信息，分组插入
     * @param items
     * @return
     */
    int insertBatch(@Param("items") List<StockBlockRtInfo> items);

}
